declare const array: string[];
for (const value of array) {
  console.log(value);
}
array.forEach((value, i) => {
  console.log(i, value);
});